import 'package:ruitmentapp/core/services/http_request.dart';
import 'package:ruitmentapp/personnel/model/zj_job_details_model.dart';
import 'package:flutter/material.dart';

class ZJJobDetailRequest {
  static Future<ZJJobDetailsModel> getJobDetailData(String publishId) async {
    // 1.发送网络请求
    const url = "/client/releasePosition/findPositionDetail";
    const method = "get";

    var params = {
      'publishId' : publishId,
    };
    final result = await HttpRequest.request(url, method:method, params: params);

    // 2.json转modal
    ZJJobDetailsModel model = ZJJobDetailsModel.fromJson(result);

    return model;
  }
}